// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
// import Vuex from 'vuex'
// import vuexI18n from 'vuex-i18n'
import App from './App';
import store from './store'
import router from './router';
import axios from 'axios';
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import eIconPicker from 'e-icon-picker';
import "e-icon-picker/lib/symbol.js"; //基本彩色图标库
import 'e-icon-picker/lib/index.css'; // 基本样式，包含基本图标
import 'font-awesome/css/font-awesome.min.css'; //font-awesome 图标库
import 'element-ui/lib/theme-chalk/icon.css'; //element-ui 图标库

//全局删除增加图标
Vue.use(eIconPicker, {
  FontAwesome: true,
  ElementUI: true,
  eIcon: true, //自带的图标，来自阿里妈妈
  eIconSymbol: true, //是否开启彩色图标
  addIconList: [],
  removeIconList: [],
  zIndex: 3100 //选择器弹层的最低层,全局配置
});

Vue.use(ElementUI);
// Vue.user(Vuex);
// Vue.use(vuexI18n.plugin,store);
// const translationsEn = {
//     "content": "This is some {type} content"
// };
// Vue.i18n.add.set('en')


Vue.config.productionTip = false

Vue.prototype.$axios = axios;
 axios.defaults.baseURL = "http://localhost:8090"
// axios.defaults.baseURL = "http://121.43.181.126:8090"
Vue.use(ViewUI, {
    capture: true
});

/* eslint-disable no-new */
new Vue({
     el: '#app',
    router,
    store,
    render: h => h(App),
})